package book.zone.test;



import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import java.util.Hashtable;

/**
 * Created by IntelliJ IDEA.
 * User: NDemeshchenko
 * Date: May 31, 2010
 * Time: 3:45:44 PM
 */

public class testJndi {
    public static void main(String[] args){
        Hashtable<String, String> env = new Hashtable<String, String>();
        env.put(Context.INITIAL_CONTEXT_FACTORY, "com.tibco.tibjms.naming.TibjmsInitialContextFactory");
        env.put(Context.PROVIDER_URL, "tibjmsnaming://goldtpus28.ru.db.com:14322");
        env.put(Context.SECURITY_PRINCIPAL, "jndi");
        env.put(Context.SECURITY_CREDENTIALS, "test1234");
        try {
            Context ctx = new InitialContext(env);
        } catch (NamingException e) {
            e.printStackTrace(); 
        }

    }

    void looking(){

    }
}
